﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true" CodeBehind="PlaylistList.aspx.cs" Inherits="FB.admin.PlaylistList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="toolbar-box">
        <div class="m">
            <div id="toolbar" class="toolbar-list">
                <ul>
                    <li id="toolbar-new" class="button">
                        <asp:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click">
                        <span class="icon-32-new"></span>New </asp:LinkButton></li>
                    <li id="toolbar-edit" class="button">
                       <asp:LinkButton ID="btnEdit" runat="server" OnClick="btnEdit_Click">
                       <span class="icon-32-edit"></span>Edit </asp:LinkButton></li>
                    <li class="divider"></li>
                    <li id="toolbar-publish" class="button">
                        <asp:LinkButton ID="btnPublish" runat="server" OnClick="btnPublish_Click">
                        <span class="icon-32-publish"></span>Publish</asp:LinkButton></li>
                    <li id="toolbar-unpublish" class="button">
                        <asp:LinkButton ID="btnUnpublish" runat="server" OnClick="btnUnpublish_Click">
                        <span class="icon-32-unpublish"></span>Unpublish </asp:LinkButton></li>
                        <li class="divider"></li>
                    <li id="toolbar-delete" class="button">
                        <asp:LinkButton ID="btnDelete" runat="server" OnClick="btnDelete_Click"
                        OnClientClick="return confirm('Bạn chắc chắn muốn xóa?');" >
                       <span class="icon-32-delete"></span>Delete </asp:LinkButton></li>
                    <li class="divider"></li>
                    <%--<li id="toolbar-feed" class="button">
                       <asp:LinkButton ID="btnFeed" runat="server" OnClick="btnFeed_Click"><span class="icon-32-move"></span>Feed</asp:LinkButton></li>--%>
                </ul>
                <div class="clr">
                </div>
            </div>
            <div class="pagetitle icon-48-menumgr">
                <h2>
                    Playlist Manager: Playlist Items</h2>
            </div>
        </div>
    </div>
    <div id="submenu-box">
        <div class="m">
            <ul id="submenu">
                <li><a href="VideoList.aspx">Video</a> </li>
                <li><a href="PlaylistList.aspx" class="active">Playlist</a> </li>
                <li><a href="VideoCategoryList.aspx">Category</a>
                </li>
            </ul>
            <div class="clr">
            </div>
        </div>
    </div>
    <div id="element-box">
        <div class="m">
            <fieldset id="filter-bar">
                <div class="filter-search fltlft">
                    <label for="filter_search" class="filter-search-lbl">
                        Filter:</label>
                    <input type="text" title="Search title or alias. Prefix with ID: to search for a menu ID."
                        value="" id="filter_search" name="filter_search">
                    <button type="submit">
                        Search</button>
                    <button onclick="document.id('filter_search').value='';this.form.submit();" type="button">
                        Clear</button>
                </div>
                <div class="filter-select fltrt">
                    <select onchange="this.form.submit()" class="inputbox" name="menutype">
                        <option value="aboutjoomla">About Joomla</option>
                        <option value="parks">Australian Parks</option>
                        <option value="fruitshop">Fruit Shop</option>
                        <option value="mainmenu">Main Menu</option>
                        <option selected="selected" value="top">Top</option>
                        <option value="usermenu">User Menu</option>
                    </select>
                </div>
            </fieldset>
            <div class="clr">
            </div>
            <table class="adminlist">
                <thead>
                    <tr>
                        <th width="1%">
                            <input type="checkbox" onclick="Joomla.checkAll(this)" title="Check All" value=""
                                name="checkall-toggle"/>
                        </th>
                        <th width="10%">
                            <a title="Click to sort by this column" onclick="" href="#">Youtube ID</a>
                        </th>
                        <th class="title">
                            <a title="Click to sort by this column" onclick="" href="#">Title</a>
                        </th>
                        <th width="5%">
                            <a title="Click to sort by this column" onclick="" href="#">Status</a>
                        </th>
                        <th width="5%">
                            <a title="Click to sort by this column" onclick="" href="#">View Count</a>
                        </th>
                        <th width="20%">
                            <a title="Click to sort by this column" onclick="" href="#">Author</a>
                        </th>
                        <th width="22%">
                            <a title="Click to sort by this column" onclick="" href="#">ID </a>
                        </th>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <td colspan="6">
                            <div class="container">
                                <div class="pagination">
                                    <div class="limit">
                                        Display #<select onchange="Joomla.submitform();" size="1" class="inputbox" name="limit"
                                            id="limit">
                                            <option value="5">5</option>
                                            <option value="10">10</option>
                                            <option value="15">15</option>
                                            <option selected="selected" value="20">20</option>
                                            <option value="25">25</option>
                                            <option value="30">30</option>
                                            <option value="50">50</option>
                                            <option value="100">100</option>
                                            <option value="0">All</option>
                                        </select>
                                    </div>
                                    <div class="limit">
                                    </div>
                                    <input type="hidden" value="0" name="limitstart">
                                </div>
                            </div>
                        </td>
                    </tr>
                </tfoot>
                <tbody>
                    <asp:Repeater ID="rptData" runat="server">
                        <ItemTemplate>
                            <tr class="row<%# Container.ItemIndex%2 %>">
                                <td class="center">
                                    <asp:CheckBox runat="server" ID="chkItem" value='<%#Eval("ID") %>'/>
                                </td>
                                <td>
                                    <a href='PlaylistEdit.aspx?id=<%#Eval("ID") %>'>
                                        <%#Eval("YoutubeID") %></a>
                                </td>
                                <td>
                                    <a href='PlaylistEdit.aspx?id=<%#Eval("ID") %>'>
                                        <%#Eval("Title") %></a>
                                </td>
                                <td class="center">
                                    <a class="jgrid" title="Unpublish the menu item alias" href="">
                                        <span class='state <%#((bool)Eval("Enable"))?"public":"unpublish" %> publish'></span>
                                    </a>
                                </td>
                                <td class="center">
                                    <%#Eval("ViewCount") %>
                                </td>
                                <td class="center">
                                    <%#Eval("Author") %>
                                </td>
                                <td class="center">
                                    <%#Eval("ID") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div class="clr">
            </div>
        </div>
    </div>

</asp:Content>
